package com.shanshan.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author shanshan
 * @since 2023-01-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_branch")
@ApiModel(value="Branch对象", description="")
public class Branch implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "支部名字")
    private String name;
    @ApiModelProperty(value = "背景")
    private String backg;
    @ApiModelProperty(value = "支部介绍")
    private String intro;
    @ApiModelProperty(value = "状态 1存在  0不存在")
    private Integer status;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "支部创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "支部修改时间")
    private LocalDateTime updateTime;
}
